var actor = argument0;
var aiScript = argument1;
var ai = instance_create(0, 0, obj_AI);
ai.actor = actor;
ai.aiScript = aiScript;
return ai;